* {
  margin: 0;
  padding: 0；;
}
body {
  margin: 0px;
  overflow: hidden;
}
#canvas {
  background: #fff;
  display: block;
  position: fixed;
  top: 0;
  left: 0;
}
ul,
ol {
  list-style: none;
}

/* 工具栏 */
.tools {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  overflow: hidden;
}
.iconfont {
  font-size: 25px !important;
}

/* 操作 */
.operation {
  padding: 20px;
  float: left;
}
.operation li {
  height: 50px;
  width: 50px;
  text-align: center;
  line-height: 50px;
  border: 1px solid #eee;
}

/* 颜色 */
.colors {
  float: right;
  padding: 0;
}
ol li {
  margin: 10px;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  border: solid 2px #aaa;
  opacity: 0.5;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}
ol li:hover {
  cursor: pointer;
  box-shadow: 0 0 10px rgba(37, 169, 221, 1);
}
li.active1 {
  opacity: 1;
  box-shadow: 0 0 10px rgba(37, 169, 221, 1);
}
li.active2 {
  opacity: 1;
  box-shadow: 0 0 10px rgba(37, 169, 221, 1);
}
.colors > li.black {
  background-color: black;
}
.colors > li.red {
  background-color: red;
}
.colors > li.green {
  background-color: green;
}
.colors > li.blue {
  background-color: blue;
}
.colors > li.yellow {
  background-color: yellow;
}
.colors > li.skyblue {
  background-color: skyblue;
}
.colors > li.pink {
  background-color: pink;
}
.colors > li.white {
  background-color: white;
}
/* 笔刷大小 */
#range-wrap {
  position: fixed;
  top: 50%;
  right: 30px;
  width: 30px;
  height: 150px;
  margin-top: -75px;
}
#range-wrap input {
  transform: rotate(-90deg);
  width: 150px;
  height: 20px;
  margin: 0;
  transform-origin: 75px 75px;
  border-radius: 15px;
  -webkit-appearance: none;
  outline: none;
  position: relative;
}
#range-wrap input::after {
  display: block;
  content: '';
  width: 0;
  height: 0;
  border: 5px solid #00ccff;
  border-right: 150px solid #00ccff;
  border-left: 0px;
  position: absolute;
  left: 0;
  top: 5px;
  border-radius: 15px;
  z-index: 0;
}
/* 滑块 */
#range-wrap input[type='range']::-webkit-slider-thumb,
#range-wrap input[type='range']::-moz-range-thumb {
  -webkit-appearance: none;
}
#range-wrap input[type='range']::-webkit-slider-runnable-track,
#range-wrap input[type='range']::-moz-range-track {
  height: 10px;
  border-radius: 10px;
  box-shadow: none;
}
#range-wrap input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  margin-top: -1px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ccff;
  position: relative;
  z-index: 999;
}
/* 移动端配适 */
@media screen and (max-width: 768px) {
  .tools {
    position: absolute;
    bottom: -90px;
    top: auto;
  }
  .tools ol li {
    float: left;
  }
  .operation {
    padding: 5px;
  }
}
